<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../3.13ajax/jQuery.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app"></div>
</body>
<script>
    $.ajax({
        url: "http://localhost:3000",
        method: "GET",
        dataType: "json",
        success: function (response) {
            let module = `<h2>${response[0].name}</h2>`
            $('#app').append(module)
        },
        error: function (xhr, status, error) {
            console.log(error);
        }
    });
</script>

</html>